package com.atguigu.common.constant;

public class WareConstant {
    public enum PurchaseStatusEnum {
        CREATED(0, "created", "新建"), ASSIGNED(1, "assigned", "已分配"),
        RECEIVE(2, "receive", "已领取"), FINISH(3, "finish", "已完成"),
        HASERROR(4, "haserror", "有异常");

        PurchaseStatusEnum(int code, String name, String msg) {
            this.code = code;
            this.name = name;
            this.msg = msg;
        }

        private int code;

        private String name;

        private String msg;

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }

        public String getName() {
            return name;
        }
    }

    public enum PurchaseDetailStatusEnum {
        CREATED(0, "created", "新建"), ASSIGNED(1, "assigned", "已分配"),
        BUYING(2, "receive", "正在采购"), FINISH(3, "finish", "已完成"),
        HASERROR(4, "haserror", "采购失败");

        PurchaseDetailStatusEnum(int code, String name, String msg) {
            this.code = code;
            this.name = name;
            this.msg = msg;
        }

        private int code;

        private String name;

        private String msg;

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }

        public String getName() {
            return name;
        }
    }
}
